#ifndef DOCTOT_COMMUNICATION_H
#define DOCTOT_COMMUNICATION_H

#include <QWidget>
#include <QTcpSocket>
#include <QLabel>
#include <QTextEdit>
#include <QPushButton>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLineEdit>
#include <QStatusBar>
#include<QHostAddress>

class doctot_communication : public QWidget
{
    Q_OBJECT
public:
    explicit doctot_communication(QWidget *parent = nullptr);
    ~doctot_communication();
private:
    QTcpSocket *m_tcp;
    QLabel *m_status;
    QTextEdit *m_record;
    QTextEdit *m_msg;
    QPushButton *m_sendMsgButton;
    QLineEdit *m_port;
    QStatusBar *m_statusBar;

    void setupUI();
    void connectToServer();
private slots:
    void on_sendMsgButton_clicked();
signals:

};

#endif // DOCTOT_COMMUNICATION_H
